﻿using Hollysys.Mes.ProductionManage.Bussiness;
using Hollysys.Mes.ProductionManage.Entities;

//using NUnit.Framework;
using System.Collections.Generic;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Hollysys.Mes.ProductionManage.Test
{
    [TestClass]
    public class UnitTest1
    {
        [TestMethod]
        public void TestMethod1()
        {
            PM_NormService ser = new PM_NormService();
            PM_Norm norm = new PM_Norm();
            norm.Code = "0001";

            norm.Name = "Name";
            ser.Insert(norm);

            var f = ser.FindAll();

            Assert.IsTrue(f.Contains(norm));
        }
    }
}
